from django.urls import re_path, path
from . import views

urlpatterns = [
    # 首页房屋推荐
    re_path(r'^api/v1.0/houses/index$', views.HouseRecommendationView.as_view()),
    # 城区列表
    re_path(r'^api/v1.0/areas/$', views.AreaView.as_view()),
    # 我的房源展示
    re_path(r'^api/v1.0/user/houses/$', views.OwnHouseView.as_view()),
    # 发布房源
    re_path(r'^api/v1.0/houses/$', views.CreateHouseView.as_view()),
    # 房屋详情
    path('api/v1.0/houses/<int:house_id>', views.HouseDetailsView.as_view()),

]